package com.zjitc.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zjitc.dao.CategorySecondDao;
import com.zjitc.model.CategorySecond;
import com.zjitc.service.CategorySecondService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/28 16:38
 * @description:
 */
@Service
public class CategorySecondServiceImpl implements CategorySecondService {
  @Autowired
  private CategorySecondDao categorySecondDao;

  @Override
  public PageInfo findCategorySecondList(int pageNum, int pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    List categorySecondList = categorySecondDao.findCategorySecondList();
    PageInfo pageInfo = new PageInfo(categorySecondList);

    return pageInfo;
  }
}
